export class localStorage {
  getItem(value) {
    try{
      return wx.getStorageSync(value)
    }catch(e) {
      console.log('get Storage Error：', e);
    }
  }
  setItem(value, key) {
    try {
      if(typeof value != 'string') {
        value += ''
      }
      wx.setStorageSync(value, key)
    } catch (e) {
      console.log('set Storage Error：', e);
    }
  }
}